<html>

	<head>
<meta charset="UTF-8">

		<?php
			include './header.php';
			include './query.php';

			session_start();
			
			// TODO
			$phone = '13588889999';
			$user = query_member_by_phone($phone);
			if (! $user) {
				$user = array();
				$user['name'] = 'jiatao';
				$user['phone'] = '13588889999';
				$user['sex'] = '男';
				$user['discount'] = '6折';
			}

		?>

	</head>

	<body>
<div class="alert alert-success" role="alert">
        <h1>我的信息</h1>
</div>

	<form class="form-horizontal">

				<div class="form-group">
					<label class="col-sm-2 control-label">姓名</label>
					 <div class="col-sm-10">
					<p class="form-control-static">$user['name']</p>
					 </div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label">电话</label>
					 <div class="col-sm-10">
					<p class="form-control-static">$user['phone']</p>
					 </div>
				 </div>

				<div class="form-group">
					<label class="col-sm-2 control-label">性别</label>
					 <div class="col-sm-10">
					<p class="form-control-static">$user['sex']</p>
					 </div>
				 </div>

				<div class="form-group">
					<label class="col-sm-2 control-label">折扣</label>
					 <div class="col-sm-10">
					<p class="form-control-static">$user['discount']</p>
					 </div>
				 </div>


	</div>
	</body>
</html>

